import request from '@/utils/request';

export function selectAll() {
  return request({
    url: `/MaintenanceRecord/gddianlan/selectAll`,
    method: 'get'
  });
}

export function addGddianlan(data) {
  return request({
    url: `/MaintenanceRecord/gddianlan/add`,
    method: 'post',
    data: data
  });
}

export function updateGddianlan(dlid, data) {
  return request({
    url: `/MaintenanceRecord/gddianlan/update/${dlid}`,
    method: 'put',
    data: data
  });
}

export function deleteGddianlan(dlid) {
  return request({
    url: `/MaintenanceRecord/gddianlan/delete/${dlid}`,
    method: 'delete'
  });
}

export function downloadGddianlan() {
  return request({
    url: `/MaintenanceRecord/gddianlan/download`,
    method: 'GET',
    responseType: 'blob'
  });
}